package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-media",path = "/check")
public interface MediaFeignClient {

    @PostMapping("/apply")
    ResponseResult<WmUser> insertWmUser(@RequestBody WmUser mediaUser);

    @PostMapping("/update")
    ResponseResult<WmUser> updateMediaUser(@RequestBody WmUser mediaUser);
}

